const { aboutModel } = require('../models/model/about');
const { dataToJSON, dataDeleteOrUpdateRes } = require('../utils/tools');

// 修改
exports.updateService = async (data) => {
	const result = await aboutModel.update(data, { where: {} });
	return dataDeleteOrUpdateRes(result);
};

// 查
exports.findService = async () => {
	const result = await aboutModel.findAll();
	return result?.[0].url;
};
